package fama.sos;
import java.io.IOException;

import javax.microedition.io.Connector;
import javax.microedition.location.Coordinates;
import javax.microedition.location.Criteria;
import javax.microedition.location.Location;
import javax.microedition.location.LocationException;
import javax.microedition.location.LocationProvider;
import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.TextMessage;

import net.rim.blackberry.api.invoke.Invoke;
import net.rim.blackberry.api.invoke.MessageArguments;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.Screen;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.container.MainScreen;


public class Sos extends UiApplication{

	private SosScreen sosScreen;
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Sos sos = new Sos();
		sos.enterEventDispatcher();
	}
	
	/**
	 * Constructor
	 */
	public Sos(){
		sosScreen = new SosScreen();
		pushScreen(sosScreen);
	}

}

/**
 * Clase interna para mostrar en pantalla
 * @author antonio
 *
 */
class SosScreen extends MainScreen{
	
	/**
	 * Constructor
	 */
	public SosScreen(){
		LabelField lb = new LabelField("Hello World!");
		add(lb);
		
	}
	
}